home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 16
/
Aminet 16 (1996)(GTI - Schatztruhe)[!][Dec 1996].iso
/
Aminet
/
comm
/
term
/
term_source.lha
/
Extras
/
Source
/
gtlayout-source.lha
/
LTP_Memory.c
< prev
next >
Wrap
C/C++ Source or Header
|
1996-03-18
|
659b
|
41 lines
/*
** GadTools layout toolkit
**
** Copyright © 1993-1996 by Olaf `Olsen' Barthel
** Freely distributable.
**
** :ts=4
*/
#ifndef _GTLAYOUT_GLOBAL_H
#include "gtlayout_global.h"
#endif
/*****************************************************************************/
APTR
LTP_Alloc(LayoutHandle *handle,ULONG amount)
{
APTR result;
result = AsmAllocPooled(handle->Pool,amount,SysBase);
if(!result)
handle->Failed = TRUE;
return(result);
}
/*****************************************************************************/
VOID
LTP_Free(LayoutHandle *handle,APTR mem,ULONG memsize)
{
if(mem)
AsmFreePooled(handle->Pool,mem,memsize,SysBase);
}